import java.util.Scanner;
class Animal{
    public String name;
    public int age;
    public String colour;
    public Animal(String name){
        this.name=name;
        System.out.println("Animal的构造方法");
    }
    public void ear(){
        System.out.println(name+"正在干饭");
    }
    static {
        System.out.println("Animal的静态代码块");
    }
    {
        System.out.println("Animal的实例代码块");
    }
}
class Cat extends Animal{
    public Cat(String name){
        super(name);
    }
}
class Dog extends Animal{
    static {
        System.out.println("Dog的静态代码块");
    }
    {
        System.out.println("Dog的实例代码块");
    }
    public Dog(String name){
        super(name);
        System.out.println("Dog的构造方法");
    }
}
public class j2023623 {
    public static void main(String[] args) {
      /* Animal animal1=new Animal("Animal11");
        System.out.println("========");
       Animal animal2=new Animal("Animall2");*/
        Dog dog1=new Dog("dog1");
        System.out.println("=======");
        Dog dog2=new Dog("dog2");

    }
}

class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            int z = scanner.nextInt();
            Sub sub = new Sub(x, y, z);
            System.out.println(sub.calculate());
        }
    }

}

class Base {

    private int x;
    private int y;

    public Base(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

}

class Sub extends Base {

    private int z;

    public Sub(int x, int y, int z) {
        //write your code here
        super(x,y);
        this.z=z;

    }

    public int getZ() {
        return z;
    }

    public int calculate() {
        return super.getX() * super.getY() * this.getZ();
    }

}
